package com.i2works.smartluolong.utils.base;

import java.util.HashMap;
import java.util.Map;

/**
 * 公司申请状态
 * 申请状态（0未提交暂存；1待预审；2预审中；3预审拒绝被退回；4预审通过待核准；5核准中；6核准拒绝被退回；7核准通过；8放弃作废)
 */

public class BusinessProjectUtil {
	public static Map<String, String> getProjectMap(){
		Map<String, String> map=new HashMap<String, String>();
		map.put("1","预包装食品销售");
		map.put("1.1","预包装食品(不含冷藏食品)销售");
		map.put("1.2","预包装食品(不含冷藏冷冻食品)销售");
		map.put("2","散装食品销售");
		map.put("2.1","散装食品(含冷藏食品)销售");
		map.put("2.2","散装食品(不含冷藏冷冻食品)销售");
		map.put("3","特殊食品销售");
		map.put("3.1","保健食品销售");
		map.put("3.2","婴幼儿配方食品销售");
		map.put("3.3","其他婴幼儿配方食品销售");
		map.put("3.4","其他婴幼儿配方食品销售");
		map.put("4","其他类食品销售");
		map.put("5","热食类食品制售");
		map.put("6","冷食类食品制售");
		map.put("7","生食类食品制售");
		map.put("8","糕点类食品制售");
		map.put("9","自制饮品类制售");
		map.put("10","其他类食品制售");
		return map;
	}
	
	public static Map<String, String> getProjectMap(String str){
		Map<String, String> map=new HashMap<String, String>();
		Map<String, String> projectMap=getProjectMap();
		String[] projects=str.split(",");
		if(projects!=null) {
		for (String project : projects) {
			map.put(project, projectMap.get(project));
		 }
		}
		return map;
	}

}
